﻿Ext.define('app.prm.detail.Index', {
    extend: 'Ext.panel.Panel',
    title: '项目首页',
    border: false,
    layout: 'border',
    controller: 'detail',
    viewModel: {
        type: 'detailmodel'
    },
    requires: ['app.prm.detail.DetailController', 'app.prm.detail.DetailModel'],
    initComponent: function () {
        var me = this;

        var projectId = me.paramsId;

        me.items = [
            
            {
                xtype: 'panel',
                border: false,
                region: 'center',
                layout: 'border',
                items: [
                    Ext.create("app.prm.detail.North", { projectId: projectId }),
                    Ext.create("app.prm.detail.Center", { projectId: projectId })
                ]
            },
             Ext.create("app.prm.detail.East", { projectId: projectId })
        ];
        me.callParent();
    },
    listeners: {
        afterrender:'onInit'
    }
})